home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
gamesrc
/
arasan_s
/
bookwrit.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-11-17
|
763b
|
39 lines
// Copyright 1992 by Jon Dart. All Rights Reserved.
#ifndef _BOOK_WRITER_H
#define _BOOK_WRITER_H
#include "bookentr.h"
#include <fstream.h>
class Book_Writer
{
// provides write access to the opening book.
public:
Book_Writer( const byte version, const unsigned size );
// opens book file for writing, truncates any existing file
virtual ~Book_Writer();
// closes book file
virtual const Boolean Is_Open() const
{
return is_open;
}
virtual Boolean Write( Book_Entry &be );
// write a book entry to the file. Writes are sequential.
private:
ofstream book_file;
Boolean is_open;
unsigned my_size;
byte my_version;
unsigned index;
};
#endif